package com.lanchetech.dao;

import com.lanchetech.entity.UserTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserTag record);

    int insertSelective(UserTag record);

    UserTag selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserTag record);

    int updateByPrimaryKey(UserTag record);

    int batchInsert(@Param("list") List<UserTag> list);

    List<UserTag> findAllByUserIdAndType(@Param("userId") Long userId, @Param("type") Byte type);

    int updateBatchWeight(@Param("list") List<UserTag> updateUserTag);
}